package com.example.sunlight.interneteverything;

import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;

import com.example.sunlight.interneteverything.View.EnvironmentView;

import data.Datas;

/**
 * Created by SunLight on 2017/8/8.
 */

public class EnvironmentAwareness extends Activity {
    RelativeLayout parent;
    EnvironmentView environmentView;
    byte tem = 0,hum=0;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_environment);
        parent = (RelativeLayout) findViewById(R.id.parent);
        environmentView = new EnvironmentView(this);
        parent.addView(environmentView);
    }

}
